<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>prop</title>
      <script src="vue.js"></script>
</head>
<body>
  <div id="id-d-c-n">
        <n-title title="news title"></n-title>
        <n-content content="hello, Vue.js!"></n-content>
        <n-author author="King"></n-author>
      </div>
  <script>
    Vue.component('n-title', {
        props: ['title'],
        template: '<h3>{{title}}</h3>'
    });
    Vue.component('n-content', {
        props: ['content'],
        template: '<p> This is news content : {{ content }}.</p >'
    })
    Vue.component('n-author', {
        props: ['author'],
        template: '<p class="p-right">Edit by {{ author }}.</p >'
    });
    var vm = new Vue({
        el: '#id-d-c-n'
    })
</script>
</body>
</html>